﻿using Admin.NET.Core;
using Admin.NET.Core;

namespace Admin.NET.Application.SeedData;

/// <summary>
/// 系统字典类型表 表种子数据
/// </summary>
[IncreSeed]
public class SysDictTypeSeedData: ISqlSugarEntitySeedData<SysDictType>
{
    /// <summary>
    /// 种子数据
    /// </summary>
    /// <returns></returns>
    public IEnumerable<SysDictType> HasData()
    {
        string recordsJSON = @"
            [
			  {
			    ""Name"": ""代码生成控件类型"",
			    ""Code"": ""code_gen_effect_type"",
			    ""OrderNo"": 100,
			    ""Remark"": ""代码生成控件类型"",
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-22 13:20:31"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": null,
			    ""CreateUserName"": null,
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 1300000000101
			  },
			  {
			    ""Name"": ""代码生成查询类型"",
			    ""Code"": ""code_gen_query_type"",
			    ""OrderNo"": 101,
			    ""Remark"": ""代码生成查询类型"",
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-22 13:20:31"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": null,
			    ""CreateUserName"": null,
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 1300000000102
			  },
			  {
			    ""Name"": ""代码生成.NET类型"",
			    ""Code"": ""code_gen_net_type"",
			    ""OrderNo"": 102,
			    ""Remark"": ""代码生成.NET类型"",
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-22 13:20:31"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": null,
			    ""CreateUserName"": null,
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 1300000000103
			  },
			  {
			    ""Name"": ""代码生成方式"",
			    ""Code"": ""code_gen_create_type"",
			    ""OrderNo"": 103,
			    ""Remark"": ""代码生成方式"",
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-22 13:20:31"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": null,
			    ""CreateUserName"": null,
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 1300000000104
			  },
			  {
			    ""Name"": ""代码生成基类"",
			    ""Code"": ""code_gen_base_class"",
			    ""OrderNo"": 104,
			    ""Remark"": ""代码生成基类"",
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-22 13:20:31"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": null,
			    ""CreateUserName"": null,
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 1300000000105
			  },
			  {
			    ""Name"": ""代码生成打印类型"",
			    ""Code"": ""code_gen_print_type"",
			    ""OrderNo"": 105,
			    ""Remark"": ""代码生成打印类型"",
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-22 13:20:31"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": null,
			    ""CreateUserName"": null,
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 1300000000106
			  },
			  {
			    ""Name"": ""机构类型"",
			    ""Code"": ""org_type"",
			    ""OrderNo"": 201,
			    ""Remark"": ""机构类型"",
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-22 13:20:31"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": null,
			    ""CreateUserName"": null,
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 1300000000201
			  },
			  {
			    ""Name"": ""学段"",
			    ""Code"": ""bnaji_xueduan"",
			    ""OrderNo"": 210,
			    ""Remark"": null,
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-26 13:24:23"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": 1300000000101,
			    ""CreateUserName"": ""超级管理员"",
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 31079183490373
			  },
			  {
			    ""Name"": ""考试类别"",
			    ""Code"": ""kaoshi_leibie"",
			    ""OrderNo"": 220,
			    ""Remark"": null,
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-29 08:15:06"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": 1300000000101,
			    ""CreateUserName"": ""超级管理员"",
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 31140788331333
			  },
			  {
			    ""Name"": ""考试状态"",
			    ""Code"": ""kaoshi_status"",
			    ""OrderNo"": 230,
			    ""Remark"": null,
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2023-12-29 08:16:46"",
			    ""UpdateTime"": ""2024-02-27 16:06:58"",
			    ""CreateUserId"": 1300000000101,
			    ""CreateUserName"": ""超级管理员"",
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 31140813893445
			  },
			  {
			    ""Name"": ""选课状态"",
			    ""Code"": ""xuanke_status"",
			    ""OrderNo"": 240,
			    ""Remark"": null,
			    ""Status"": 1,
			    ""Children"": null,
			    ""CreateTime"": ""2024-01-29 13:22:15"",
			    ""UpdateTime"": null,
			    ""CreateUserId"": 1300000000101,
			    ""CreateUserName"": ""超级管理员"",
			    ""UpdateUserId"": null,
			    ""UpdateUserName"": null,
			    ""IsDelete"": false,
			    ""Id"": 31831176399685
			  }
			]
        ";
        List<SysDictType> records = Newtonsoft.Json.JsonConvert.DeserializeObject<List<SysDictType>>(recordsJSON);
        
        // 后处理数据的特殊字段
		//for (int i = 0; i < records.Count; i++) { }

        return records;
    }
}